//
//  SystemDataBase.h
//  AAIM
//
//  Created by awh on 2020/1/5.
//  Copyright © 2020年 AAIM. All rights reserved.
//

#import <Foundation/Foundation.h>
//#import "BTMessageModel.h"
NS_ASSUME_NONNULL_BEGIN
//@class BTMessageModel;

@interface SystemDataBase : NSObject
+ (instancetype)shareSystemDataBase;

// 创表，登录成功后调用
- (void)createTable;
//插入数据 群通知
-(void)insertSystemData:(BTMessageModel*)systemModel;
//插入数据 好友信息
-(void)insertFriendSystemData:(BTMessageModel*)systemFriendModel;
// 群 取出所有群通知
- (NSArray<BTMessageModel *> *)queryGroupNoticeMessages;
//好友 取出
- (NSArray<BTMessageModel *> *)queryFriendsNoticeMessages;

//修改申请群的状态
-(void)updateApplyGroupState:(BTMessageModel*)msg;

@end

NS_ASSUME_NONNULL_END
